package com.jrx.anytxn.investor.mapper.ext;

import com.jrx.anytxn.investor.entity.TlMistakeInvestorLog;
import com.jrx.anytxn.investor.mapper.base.TlMistakeInvestorLogMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface ExtTlMistakeInvestorLogMapper extends TlMistakeInvestorLogMapper {


   List<TlMistakeInvestorLog> selectMistake(@Param(value = "customerId") String customerId,
                                       @Param(value = "tenantId") String tenantId,
                                       @Param(value = "misStatus") String misStatus);

    int updateMistake(@Param("id") Long id,
                      @Param(value = "customerId") String customerId,
                      @Param(value = "tenantId") String tenantId, @Param(value = "bussinessDate") Date bussinessDate);

    int countMistake(@Param(value = "customerId") String customerId,
                     @Param(value = "tenantId") String tenantId,
                     @Param(value = "misStatus") String misStatus);

    /**
     * 根据差错状态查询差错对应的还款流水
     * @param customerId
     * @param tenantId
     * @param misStatus
     * @return
     */
    List<String> selectByStatus(@Param(value = "customerId") String customerId,
                                @Param(value = "tenantId") String tenantId,
                                @Param(value = "misStatus") String misStatus);


    List<TlMistakeInvestorLog> selectByTenantId(@Param(value = "tenantId") String tenantId);
}